package com.woniuxy01;

import java.util.Arrays;

/**
 * @author 作者
 * @create 2025-09-10 9:52
 */
public class Test01 {
    public static void main(String[] args) {
        int[] a =new int[0];
        String str = Arrays.toString(a);
        System.out.println(str);
    }

    private static void test03() {
        String str="abcdefg";
        System.out.println(stringReverse(str));
    }

    public static String stringReverse(String str) {
        return new StringBuilder(str).reverse().toString();
    }

    private static void test02() {
        StringBuilder sb=new StringBuilder("abcdefg");
        sb.reverse();
        System.out.println(sb);
    }

    private static void test01() {
        StringBuilder sb=new StringBuilder("a");
        sb.append("b");
        sb.append("c");
        sb.insert(1,"d");
        System.out.println(sb);
    }
}
